import {link} from "@/api/api.js"
export let listdata1={
    state:{
        arr1:[],
        arr2:[]
    },
    mutations:{
        arr1list(state,payload){
            state.arr1=payload
            // console.log(state.arr)
        },
        arr2list(state,payload){
            state.arr2=payload
            // console.log(state.arr)
        }
    },
    actions:{
        listdata(context){
            link("/user/listdata1","get").then((ok)=>{
            //   context.commit("getimgurl",ok.data)
              context.commit("arr1list",ok.data)
            })
            link("/user/listdata2","get").then((ok)=>{
                //   context.commit("getimgurl",ok.data)
                  context.commit("arr2list",ok.data)
                })
        }
    }
}